package com.lcredu.springbootusersys.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * @author 黎长容
 * @date 2025-08-16 22:58
 */
//自定义异常，也会根据状态码，匹配到对应的错误页面显示   如果将自定义异常交给全局异常处理器接管则优先级大于异常CODE匹配
@ResponseStatus(HttpStatus.FORBIDDEN)
public class AccessException extends RuntimeException {

    public AccessException() {
    }

    public AccessException(String message) {
        super(message);
    }
}
